package example.week2;

public class Main {
    public static void main(String[] args) {
        //创建对象1
        example.week2.zoo a1 = new example.week2.zoo();
        //赋值
        a1.name = "coco";
        a1.age = 5;
        a1.gender = "female";
        a1.species = "rabbit";
        a1.weight = 3;
        //调用方法
        a1.introduction();
        a1.condition();
        a1.daily();

        System.out.println("******************************");

        //创建对象2
        example.week2.zoo a2 = new example.week2.zoo();
        a2.name = "Otto";
        a2.age = 7;
        a2.gender = "male";
        a2.species = "monkey";
        a2.weight = 15;
        //调用方法
        a2.introduction();
        a2.condition();
        a2.daily();

        System.out.println("******************************");

        //创建对象a
        example.week2.company c1 = new example.week2.company();
        c1.name = "Huawei";
        c1.location = "上海市浦东新区昌里路303号";
        c1.number =152116541;
        c1.boss = "任正非";
        c1.business = "developing electronic products";

        c1.introduction();
        c1.work();
        c1.daily();

        System.out.println("******************************");

        example.week2.company c2 = new example.week2.company();
        c2.name = "LI";
        c2.location = "广东省深圳市";
        c2.number =156451253;
        c2.boss = "李小伟";
        c2.business = "real estate";

        c2.introduction();
        c2.work();
        c2.daily();
        }
    }